<?php

/**
 * CelebrioPeople default
 *
 * @copyright  Copyright (c) 2011 Celebrio Software
 * @package    CelebrioPeople
 */
namespace ApplicationsModule\ElderlyPreferencesModule;

use WebtopModule\BasePresenter;

use Nette\Environment;

class DefaultPresenter extends BasePresenter {
    
    public function startup() {
	parent::startup();
	header ( "Content-type:text/html; charset=utf-8" ); // TODO: poresit
	if ($this->isAjax()) {
	    $this->invalidateControl("celebrioelderlypreferencesSnippet");
	}
	if(!Environment::getUser()->isLoggedIn()) {
            throw new \Exception("User is not authenticated");
	    return;
        }
    }
    
    public function renderDefault() {
    }

}